import request from '../utils/request'

export function getOrderList(params) {
	return request({
		url: '/member/order/list',
		method: 'get',
		params: params
	})
}

export function orderFind(orderId) {
	return request({
		url: '/member/order/find/' + orderId,
		method: 'get'
	})
}


export function save(data) {
	return request({
		url: '/member/order/save',
		method: 'post',
		data: data
	})
}

export function confirm(params) {
	return request({
		url: '/member/order/confirm',
		method: 'post',
		params: params
	})
}
export function del(id) {
	return request({
		url: '/member/order/del/'+id,
		method: 'post',
	})
}
export function cancel(params) {
	return request({
		url: '/member/order/cancel',
		method: 'post',
		params:params
	  })
}


export function payment(params) {
	return request({
	  url: '/member/order/payment',
	  method: 'post',
	  params:params
	})
  }

export function complete(params) {
	return request({
	  url: '/member/order/complete',
	  method: 'post',
	  params:params
	})
  }
  
